<?php 
//$file = $_SERVER['DOCUMENT_ROOT']."/admin/managecodes/Excel/UploAd_c.xls"; 
$file = "Excel/leadprice.xls"; 

header("Pragma: no-cache");
header('Content-type: application/x-download');
header('Content-Disposition:attachment; filename="'.$file.'"');
header("Content-Length: " . filesize($file));
readfile($file);

/*header("Cache-Control: no-cache");
header("Pragma: no-cache");
header("Cache-Control: post-check=0, pre-check=0", FALSE);
header("Content-Type: application/vnd.ms-excel; name='excel'");
header('Content-Disposition: filename="'.$file.'"');
header("Content-Length: " . filesize($file));
readfile($file);*/

?>